package com.homework.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

/**
 * @desc:
 * @author: Ping
 * @date: 2024/9/17 21:12
 */
@Repository
@Configuration
@AllArgsConstructor
@NoArgsConstructor
@Scope("singleton")
@Data
@Accessors(chain = true)
public class User {
    private int userId ;
    private String username ;
    private String password ;
    private String nickname;
    private String email ;
    private String phone ;
    private int sex;
    private int age;
    private int status ;
    private String salt ;
    private Date createTime ;
    private Date updateTime ;
    private Date lastLoginTime ;
    private List<Role> roles ;


}
